package com.njym.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * 支付配置
 *
 * @author zhy
 * @create 2018-08-22 10:49
 **/
@TableName("sys_payment_config")
public class SysPaymentConfig extends Model<SysPaymentConfig> {

    /**
     * 主键
     * 主键
     * isNullAble:0
     */
    @TableId(type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 支付方式
     * isNullAble:1
     */
    private String modeId;

    /**
     * 配置名
     * isNullAble:1
     */
    private String configName;

    /**
     * 配置键
     * isNullAble:1
     */
    private String configKey;

    /**
     * 配置值
     * isNullAble:1
     */
    private String configValue;

    /**
     * 排序
     * isNullAble:1
     */
    private Integer sortNo;

    /**
     * 逻辑删除
     * isNullAble:1
     */
    @TableLogic
    private Integer deleted;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getModeId() {
        return modeId;
    }

    public void setModeId(String modeId) {
        this.modeId = modeId;
    }

    public String getConfigName() {
        return configName;
    }

    public void setConfigName(String configName) {
        this.configName = configName;
    }

    public String getConfigKey() {
        return configKey;
    }

    public void setConfigKey(String configKey) {
        this.configKey = configKey;
    }

    public String getConfigValue() {
        return configValue;
    }

    public void setConfigValue(String configValue) {
        this.configValue = configValue;
    }

    public Integer getSortNo() {
        return sortNo;
    }

    public void setSortNo(Integer sortNo) {
        this.sortNo = sortNo;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    @Override
    protected Serializable pkVal() {
        return id;
    }
}
